package com.atguigu.springcloud.service;

import com.atguigu.springcloud.entities.Payment;
import org.apache.ibatis.annotations.Param;

/**
 * @author 赵雨强
 * @create 2021/4/30 6:39
 */
public interface PaymentService {
    /**
     * 向数据库写
     * @param payment 写入的订单
     * @return 是否成功
     */
    int create(Payment payment);

    /**
     * 根据ID查询
     * @param id ID
     * @return 订单完整信息
     */
    Payment getPaymentById(@Param("id") Long id);
}
